package com.nervenets.web.controller.admin;

import com.nervenets.Global;
import com.nervenets.web.controller.TokenParams;
import com.nervenets.web.enumeration.Role;
import com.nervenets.web.enumeration.SettleType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Data
public class ManagerEditParams extends TokenParams {
    @ApiModelProperty(value = "管理员账号ID，不填是为新建")
    private long managerId;
    @ApiModelProperty(value = "商户登录手机，不传不能登录", required = true)
    @Pattern(regexp = Global.RegExp.MOBILE, message = "请输入正确的手机号码")
    private String mobile;
    @ApiModelProperty(value = "商户登录密码，不传不能登录")
    private String password;
    @ApiModelProperty(value = "管理员权限", required = true)
    private Role role;
    @ApiModelProperty(value = "名称", required = true)
    @NotNull(message = "名称不能为空")
    private String name;
    @ApiModelProperty(value = "联系人", required = true)
    @NotNull(message = "联系人不能为空")
    private String contactName;
    @ApiModelProperty(value = "联系人电话", required = true)
    @Pattern(regexp = Global.RegExp.MOBILE, message = "请输入正确的联系人电话")
    private String contactMobile;
    @ApiModelProperty(value = "银行客户经理", required = true)
    @NotNull(message = "银行客户经理不能为空")
    private String bankContactName;
    @ApiModelProperty(value = "银行客户经理电话", required = true)
    @Pattern(regexp = Global.RegExp.MOBILE, message = "请输入正确的银行客户经理电话")
    private String bankContactMobile;
}
